INCLUDE_DIRECTORIES(${CPPUNIT_INCLUDE_DIR})
LINK_DIRECTORIES(${CPPUNIT_LIBRARY_DIR})
ADD_DEFINITIONS(${CPPUNIT_CFLAGS})

MACRO(UNIT_TEST TEST_NAME)
  IF(${ARGC} GREATER 1)
      ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cpp ${ARGN})
  ELSE(${ARGC} GREATER 1)
      ADD_EXECUTABLE(${TEST_NAME} ${TEST_NAME}.cpp)
  ENDIF(${ARGC} GREATER 1)
  TARGET_LINK_LIBRARIES(${TEST_NAME} stuffs ${CPPUNIT_LIBRARY})
  TEST_WRAPPER(${TEST_NAME} TRUE)
ENDMACRO(UNIT_TEST TEST_NAME)

#UNIT_TEST(dottest)
